//
//  JBAccountManager.h
//  SC
//
//  Created by YongbinZhang on 10/25/13.
//  Copyright (c) 2013 ZhangYongbin(JustBen). All rights reserved.
//

#import <Foundation/Foundation.h>


@interface JBAccountManager : NSObject

typedef enum {
    LoginTypeQQ = 0,
    LoginTypeSina = 1,
    LoginTypeEmail = 2,
    LoginTypeTel = 3,
    
} LoginType;

+ (JBAccountManager *)sharedAccountManager;

@property (nonatomic, assign, readonly) BOOL logined;

@property (nonatomic, assign, readonly) LoginType accountLoginType;
@property (nonatomic, copy, readonly) NSString *accountUserId;
@property (nonatomic, copy, readonly) NSString *accountUserName;
@property (nonatomic, copy, readonly) NSString *accountPassword;
@property (nonatomic, copy, readonly) NSString *accountUserNickName;
@property (nonatomic, copy, readonly) NSString *accountUserHeadImgurl;
@property (nonatomic, copy, readonly) NSString *accountUserSign;
@property (nonatomic, copy, readonly) NSString *accountUserGender;

@property (nonatomic, copy, readonly) NSString *accountUserProvinceName;
@property (nonatomic, copy, readonly) NSString *accountUserProvinceCode;
@property (nonatomic, copy, readonly) NSString *accountUserCityName;
@property (nonatomic, copy, readonly) NSString *accountUserCityCode;

- (void)loginWithType:(LoginType)type userName:(NSString *)userName password:(NSString *)password userId:(NSString *)userId nickName:(NSString *)nickName headImgurl:(NSString *)headImgurl sign:(NSString *)sign gender:(NSString *)gender provinceName:(NSString *)provinceName provinceCode:(NSString *)provinceCode cityName:(NSString *)cityName cityCode:(NSString *)cityCode;

- (void)updateNickName:(NSString *)nickName headImgurl:(NSString *)headImgurl sign:(NSString *)sign gender:(NSString *)gender provinceName:(NSString *)provinceName provinceCode:(NSString *)provinceCode cityName:(NSString *)cityName cityCode:(NSString *)cityCode;

- (void)logout;

- (void)userNickName:(NSString *)userNickName;
@end
